<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="base-template.imp.xsl" />
	
	<xsl:output encoding="UTF-8" method="html" saxon:character-representation="native" xmlns:saxon="http://saxon.sf.net/"/>
						
	<xsl:template name="content">
		<div class="title"> FAQ </div>
		<xsl:for-each select="//page/faq/Question">	
			<div class="date-news"><xsl:value-of select="@created" /></div>
			<div class="question">Вопрос: <xsl:value-of select="content"/></div>
			<div class="text answer">Ответ: <xsl:value-of select="answer"/></div>
			<div class="text">Автор вопроса: <xsl:value-of select="Author/@name"/> <![CDATA[&nbsp;]]>
						  <xsl:value-of select="Author/@fname"/></div>
			<xsl:if test="//page/logined/@status=2">
						<a href="/admin/question/{@id}" class="text">Редактировать</a> <![CDATA[&nbsp;&nbsp;]]>
						<a href="/admin/question/{@id}/remove" class="text">Удалить</a>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>		